package org.lgiavedoni.android.franq.event;

import lombok.Data;

import org.lgiavedoni.android.franq.core.envent.Event;
import org.lgiavedoni.android.franq.core.envent.dao.EventDao;
@Data
public class FrankStartEvent extends Event /*implements RegisterCalendarEvent */{
	
	private final Event lastEvent;
	
	public FrankStartEvent(){
		lastEvent = EventDao.inst.getLast();
	}

	/*@Override
	public CalendarEvent toCalendarEvent() {
		if(lastEvent == null)
			return new CalendarEventImp("Starting app", "Starting app", getCreationDate());
		return new CalendarEventImp("Out of service", "Out of service",lastEvent.getCreationDate() ,getCreationDate());
	}*/
	
	@Override
	public String toString() {
		return "FrankStartEvent";
	}

}
